package com.selfdriving.dialog;

import android.content.Context;
import android.view.View;
import android.widget.Button;

import com.selfdriving.BaseDialog;
import com.selfdriving.R;

public class TogetherDialog extends BaseDialog implements
		android.view.View.OnClickListener
{

	private OnDialogClickListener clickListener;
	private Button btnSure;
	private Button btnCancel;
	Context context;

	public TogetherDialog(Context context)
	{
		super(context);
		setDialogContentView(R.layout.search_feature_dialog);
		this.context = context;
	}

	@Override
	public void onClick(View v)
	{
		super.onClick(v);
		switch (v.getId())
		{
		case R.id.btnSure:
			break;
		case R.id.btnCancel:
			clickListener.OnCancelClick();
			break;
		}
	}

	public void setOnDialogClickListener(OnDialogClickListener clickListener)
	{
		this.clickListener = clickListener;
	}

	public interface OnDialogClickListener
	{
		void OnOkClick(String st);

		void OnCancelClick();
	}

}
